package in.equilibr.ingredients.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Index;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.Store;

@Entity
@Indexed(index="hibernate/index")
@Table(name = "person")
public class Person {
	@Id
	@GeneratedValue
	@Column(name = "ID")
	private Integer id;

	@Field(index=Index.TOKENIZED, store=Store.NO)
	@Column(name = "Name")
	private String name;

	@Column(name = "Age")
	private String age;

	@Column(name = "Weight")
	private String weight;
	
	@Column(name = "Tall")
	private String tall;

	@Column(name = "Datebirth")
	private String datebirth;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	public String getTall() {
		return tall;
	}

	public void setTall(String tall) {
		this.tall = tall;
	}

	public String getDatebirth() {
		return datebirth;
	}

	public void setDatebirth(String datebirth) {
		this.datebirth = datebirth;
	}
	
}

